package com.example.swd1.gudong.constant;

//==================================================================================================================
//   Author :  Shile Wu
//   Date  :  16-8-23
//   Role :  some constant
//   Reference documents : None
//==================================================================================================================
public class Constant {
    public static final int BTN_FLAG_SPORTRANG = 0X00;
    public static final int BTN_FLAG_FOUND = 0x01;
    public static final int BTN_FLAG_SPORT = 0x02;
    public static final int BTN_FLAG_MESSAGE = 0x03;
    public static final int BTN_FLAG_ME = 0x04;
    public static final int VIEW_PAGE_FLAG_SPORT = 0x05;
    public static final int VIEW_PAGE_FLAG_TRAIN = 0x06;
    public static final int VIEW_PAGE_FLAG_TARGET = 0x07;
    public static final int VIEW_PAGE_FLAG_DYNAMIC = 0x08;
    public static final int VIEW_PAGE_FLAG_SQUARE = 0x09;

    //Fragment的标识
    public static final String FRAGMENT_TITLE_SPORTRANG = "运动圈";
    public static final String FRAGMENT_TITLE_FOUND = "发现";
    public static final String FRAGMENT_TITLE_SPORT = "运动";
    public static final String FRAGMENT_TITLE_MESSAGE = "消息";
    public static final String FRAGMENT_TITLE_ME = "我的";
    public static final String VIEW_PAGE_TITLE_SPORT = "运动";
    public static final String VIEW_PAGE_TITLE_TRAIN = "训练计划";
    public static final String VIEW_PAGE_TITLE_TARGET = "目标运动";
    public static final String VIEW_PAGE_TITLE_DYNAMIC = "动态";
    public static final String VIEW_PAGE_TITLE_SQUARE = "广场";

    public static final String DATABASE_NAME = "sport.db";
    public static final String DATABASE_TABLE_NAME = "sport_record";
    public static final String DATABASE_TABLE_FIELD_ID = "_id";
    public static final String DATABASE_TABLE_FIELD_TIME = "time";
    public static final String DATABASE_TABLE_FIELD_DISTANCE = "distance";
    public static final String DATABASE_TABLE_FIELD_AVG_SPEED = "avg_speed";
    public static final String DATABASE_TABLE_FIELD_HOURS = "hours";
    public static final String DATABASE_TABLE_FIELD_AVG_PACE = "avg_pace";

    public static final String SQUARE_TITLE_BROAD_CASE = "广播";
    public static final String SQUARE_TITLE_HOT = "热门";
    public static final String SQUARE_TITLE_NEAR = "附近";
    public static final String SQUARE_TITLE_WAKEUP = "Wake Up";
    public static final String SQUARE_TITLE_HEALTH = "健康 吃出来";
    public static final String SQUARE_KEY_TITLE="title";
    public static final String SQUARE_KEY_IMAGE="image";

    //rand activity
    public static final String RANK = "rank";
    public static final String ICON = "icon";
    public static final String NAME = "name";
    public static final String DISTANCE = "distance";


    public static final String DATABASE_TABLE_NAME_SPORT_RECORD = "sport_record";

    public static final String DATABASE_TABLE_NAME_MESSAGE_LIST = "message_list";
    public static final String DATABASE_TABLE_FIELD_MESSAGE_ID ="_id";
    public static final String DATABASE_TABLE_FIELD_MESSAGE_TITLE = "title";
    public static final String DATABASE_TABLE_FIELD_MESSAGE_TIME = "time";
    public static final String DATABASE_TABLE_FIELD_MESSAGE_CONTENT = "content";
    public static final String DATABASE_TABLE_FIELD_MESSAGE_UNREADNUM = "unread_num";


    public static final String IP ="http://10.92.34.197:9090/";
    public static final String LOGIN_URL = IP+"GudongServer/servlet/LoginServlet";

}
